package com.xinqi.modules.stats.score.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.stats.score.domain.CourseTotalScoreOfflineEntity;
import com.xinqi.modules.stats.score.dto.rsp.CourseTotalScoreOfflineResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 线下成绩主表数据层
 *
 * @author: system
 * @date: 2023/03/26
 */
@Mapper
public interface CourseTotalScoreOfflineMapper extends SuperMapper<CourseTotalScoreOfflineEntity> {

    CourseTotalScoreOfflineResultDTO allCourseTotalScoreOffline(Long id);

    List<CourseTotalScoreOfflineResultDTO> getStudentTotalScoreOffline(@Param("classId") Long classId, @Param("studentId") Long studentId);

    IPage<CourseTotalScoreOfflineResultDTO> getTotalScoreOfflinePage(Page page, @Param("classId") Long classId, @Param("keyWords") String keyWords);

    IPage<CourseTotalScoreOfflineResultDTO> getStudentTotalScoreOfflinePage(Page page, @Param("classId") Long classId, @Param("studentId") Long studentId, @Param("keyWords") String keyWords);

}
